<?php
/**
 * zhuna_php 住哪网酒店分销联盟程序php版　BY Tmac PHP MVC framework
 * $Author: zhangwentao $  <zwttmac@qq.com>
 * $Id: Tmac.config.php 1872 2011-04-22 01:37:56Z zhangwentao $
 * http://un.zhuna.cn； 
 */
!defined('TMAC_ROOT') && exit('Access Denied!');
require(VAR_ROOT . 'Data' . DIRECTORY_SEPARATOR . 'config.cache.inc.php');
require(VAR_ROOT . 'Data' . DIRECTORY_SEPARATOR . 'database.config.php');
$TmacConfig = array();

//Tmac 一般设置
$TmacConfig['Common']['urlrewrite'] = false;            //是否开启urlrewrite(隐藏index.php)
$TmacConfig['Common']['urlseparator'] = '.';            //Controller与Action的分隔符  以上几项修改后 需要删除Cache\template下的模板缓存
$TmacConfig['Common']['charset'] = 'UTF-8';             //文档编码
$TmacConfig['Common']['timezone'] = 'Asia/Chongqing';   //时区
$TmacConfig['Common']['autofilter'] = true;             //是否进行自动对POST.GET.COOKIE进行过滤
$TmacConfig['Common']['gzip'] = true;                   //是否启用gzip页面压缩
$TmacConfig['Common']['debug'] = false;					//是否开启DEBUG模式 上线后关闭
$TmacConfig['Common']['errorreport'] = true;           //是否开启页面报错 上线后关闭
$TmacConfig['Common']['url_case_insensitive'] = false;  //URL地址是否不区分大小写
$TmacConfig['Common']['cookiepre'] = 'tmac_';           //cookie前缀
$TmacConfig['Common']['cookiecrypt'] = true;            //cookie是否加密 建议您调试程序的时候关闭 发布程序的时候开启

$TmacConfig['Common']['Database'] = 'default';          //Tmac 数据库设置 选择数据库 支持多库

//Tmac 模板相关设置
$TmacConfig['Template']['template'] = 'View';           //设置系统模板文件的存放目录
$TmacConfig['Template']['template_dir'] = $cfg_style;    //设置前台模板目录名
$TmacConfig['Template']['template_admin_dir'] = 'admin';    //设置后台模板目录名
$TmacConfig['Template']['cache_dir'] = 'Cache' . DIRECTORY_SEPARATOR . 'template';        //指定模板缓存文件存放目录
$TmacConfig['Template']['auto_update'] = true;          //当模板文件有改动时重新生成缓存 [关闭该项会快一些]
$TmacConfig['Template']['cache_lifetime'] = 0;          //缓存生命周期(分钟)，为 0 表示永久 [设置为 0 会快一些]
$TmacConfig['Template']['suffix'] = '.html';            //模板文件后缀名
$TmacConfig['Template']['cache_open'] = false;          //是否开启缓存，程序调试时关闭,上线时打开

//Tmac 缓存设置
$TmacConfig['Cache']['class'] = 'File';                 //Tmac缓存方式 可以为File Apc EAccelerator Memcached XCache

//Memcached 设置
$TmacConfig['Cache']['Memcached']['host'] = 'localhost';    //Memcached 主机
$TmacConfig['Cache']['Memcached']['port'] = 11211;          //Memcached 端口
$TmacConfig['Cache']['Memcached']['persistent'] = true;     //Memcached 长连接
$TmacConfig['Cache']['Memcached']['weight'] = 1;            //Memcached 权重
$TmacConfig['Cache']['Memcached']['timeout'] = 1;           //Memcached 连接时间
$TmacConfig['Cache']['Memcached']['compression'] = true;    //Memcached 压缩

//软件摘要信息，****请不要删除本项**** 否则系统无法正确接收系统漏洞或升级信息
$TmacConfig['config']['version'] = 'V2';
$TmacConfig['config']['soft_lang'] = 'utf-8';
$TmacConfig['config']['soft_public'] = 'base';
$TmacConfig['config']['backup_dir'] = 'backupdata';   //数据库备份存放文件夹名

$TmacConfig['config']['softname'] = '住哪网酒店分销联盟程序_独立版';
$TmacConfig['config']['soft_enname'] = 'Zuncms_Professional';
$TmacConfig['config']['soft_devteam'] = '住哪网联盟技术组PHP版本团队';

//配置
$TmacConfig['config']['Order_api'] = 'http://price.un.zhuna.cn/';
$TmacConfig['config']['picurl'] = "http://p.zhuna.cn";
$TmacConfig['config']['ZNpicurl'] = "http://www.zhuna.cn";
?>